package candidates;

import java.util.Comparator;


public class ComparatorCandidateWeight implements Comparator<ArticleCandidate> {

	@Override
	public int compare(ArticleCandidate k1, ArticleCandidate k2) {
		int result = ((Double)k1.getGewicht()).compareTo((Double)k2.getGewicht());
		if (result != 0) return result;
		return k1.toString().compareTo(k2.toString());
	}

}
